/*
 * 人人信用管理有限公司版权所有.
 * 
 * @Description:
 * 
 * @author: liyuliang
 * 
 * @date: 20 Apr 2017 10:44:16 am
 * 
 * 注意：本内容仅限于人人信用管理有限公司内部传阅，禁止外泄以及用于其他的商业目的.
 */

package com.rrx360.common.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping(value = "/errors")
public class ErrorController {

  @RequestMapping("/404")
  public String error404(HttpServletRequest request, HttpServletResponse response) {
    return "common/errors/404";
  }

  @RequestMapping({"/exception", "/500"})
  public String exceptionError(HttpServletResponse response) {
    response.setStatus(200);
    return "common/errors/exception";
  }

  @RequestMapping({"/noauth", "403"})
  public String noAuth(HttpServletResponse response) {
    return "common/errors/noAuth";
  }
}

